<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
    xmlns:s="http://jboss.com/products/seam/taglib"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:a="http://richfaces.org/a4j"
    xmlns:rich="http://richfaces.org/rich"
    template="layout/template.xhtml">

<ui:define name="body">

    <h:form id="objetivosLineaInvestigacion" styleClass="edit">

        <rich:panel>
            <f:facet name="header">#{objetivosLineaInvestigacionHome.managed ? 'Edit' : 'Add'} Objetivos linea investigacion</f:facet>



            <s:decorate id="proyLineaObjField" template="layout/edit.xhtml">
                <ui:define name="label">Proy linea obj</ui:define>
                <h:inputText id="proyLineaObj"
                          value="#{objetivosLineaInvestigacionHome.instance.proyLineaObj}">
                    <a:support event="onblur" reRender="proyLineaObjField" bypassUpdates="true" ajaxSingle="true"/>
                </h:inputText>
            </s:decorate>


            <s:decorate id="publLineaObjField" template="layout/edit.xhtml">
                <ui:define name="label">Publ linea obj</ui:define>
                <h:inputText id="publLineaObj"
                          value="#{objetivosLineaInvestigacionHome.instance.publLineaObj}">
                    <a:support event="onblur" reRender="publLineaObjField" bypassUpdates="true" ajaxSingle="true"/>
                </h:inputText>
            </s:decorate>


            <s:decorate id="herrLineaObjField" template="layout/edit.xhtml">
                <ui:define name="label">Herr linea obj</ui:define>
                <h:inputText id="herrLineaObj"
                          value="#{objetivosLineaInvestigacionHome.instance.herrLineaObj}">
                    <a:support event="onblur" reRender="herrLineaObjField" bypassUpdates="true" ajaxSingle="true"/>
                </h:inputText>
            </s:decorate>


            <s:decorate id="transLineaObjField" template="layout/edit.xhtml">
                <ui:define name="label">Trans linea obj</ui:define>
                <h:inputText id="transLineaObj"
                          value="#{objetivosLineaInvestigacionHome.instance.transLineaObj}">
                    <a:support event="onblur" reRender="transLineaObjField" bypassUpdates="true" ajaxSingle="true"/>
                </h:inputText>
            </s:decorate>


            <s:decorate id="colabLineaObjField" template="layout/edit.xhtml">
                <ui:define name="label">Colab linea obj</ui:define>
                <h:inputText id="colabLineaObj"
                          value="#{objetivosLineaInvestigacionHome.instance.colabLineaObj}">
                    <a:support event="onblur" reRender="colabLineaObjField" bypassUpdates="true" ajaxSingle="true"/>
                </h:inputText>
            </s:decorate>


            <s:decorate id="confLineaObjField" template="layout/edit.xhtml">
                <ui:define name="label">Conf linea obj</ui:define>
                <h:inputText id="confLineaObj"
                          value="#{objetivosLineaInvestigacionHome.instance.confLineaObj}">
                    <a:support event="onblur" reRender="confLineaObjField" bypassUpdates="true" ajaxSingle="true"/>
                </h:inputText>
            </s:decorate>


            <s:decorate id="idLineaRedmineField" template="layout/edit.xhtml">
                <ui:define name="label">Id linea redmine</ui:define>
                <h:inputText id="idLineaRedmine"
                          value="#{objetivosLineaInvestigacionHome.instance.idLineaRedmine}">
                    <a:support event="onblur" reRender="idLineaRedmineField" bypassUpdates="true" ajaxSingle="true"/>
                </h:inputText>
            </s:decorate>


            <div style="clear:both">
                <span class="required">*</span>
                required fields
            </div>

        </rich:panel>

        <div class="actionButtons">

            <h:commandButton id="save"
                          value="Save"
                         action="#{objetivosLineaInvestigacionHome.persist}"
                       disabled="#{!objetivosLineaInvestigacionHome.wired}"
                       rendered="#{!objetivosLineaInvestigacionHome.managed}"/>

            <h:commandButton id="update"
                          value="Save"
                         action="#{objetivosLineaInvestigacionHome.update}"
                       rendered="#{objetivosLineaInvestigacionHome.managed}"/>

            <h:commandButton id="delete"
                          value="Delete"
                         action="#{objetivosLineaInvestigacionHome.remove}"
                      immediate="true"
                       rendered="#{objetivosLineaInvestigacionHome.managed}"/>

            <s:button id="cancelEdit"
                   value="Cancel"
             propagation="end"
                    view="/ObjetivosLineaInvestigacion.xhtml"
                rendered="#{objetivosLineaInvestigacionHome.managed}"/>

            <s:button id="cancelAdd"
                   value="Cancel"
             propagation="end"
                    view="/#{empty objetivosLineaInvestigacionFrom ? 'ObjetivosLineaInvestigacionList' : objetivosLineaInvestigacionFrom}.xhtml"
                rendered="#{!objetivosLineaInvestigacionHome.managed}"/>

        </div>
    </h:form>

<rich:tabPanel switchType="ajax">

    <rich:tab label="Objetivoses">
        <h:form styleClass="association" id="objetivosesChildren">

            <h:outputText value="There are no objetivoses associated with this objetivosLineaInvestigacion."
                       rendered="#{empty objetivosLineaInvestigacionHome.objetivoses}"/>

            <rich:dataTable value="#{objetivosLineaInvestigacionHome.objetivoses}"
                           var="_objetivos"
                      rendered="#{not empty objetivosLineaInvestigacionHome.objetivoses}"
                    rowClasses="rvgRowOne,rvgRowTwo"
                            id="objetivosesTable">
                <rich:column sortBy="#{_objetivos.idObjetivos}">
                    <f:facet name="header">Id objetivos</f:facet>
                    <h:outputText value="#{_objetivos.idObjetivos}"/>
                </rich:column>
            </rich:dataTable>

        </h:form>

        <f:subview rendered="#{objetivosLineaInvestigacionHome.managed}" id="objetivoses">
        <div class="actionButtons">
            <s:button id="addobjetivos"
                   value="Add objetivos"
                    view="/ObjetivosEdit.xhtml"
             propagation="none">
                 <f:param name="objetivosLineaInvestigacionIdObjetivosLineaInvestigacion"
                         value="#{objetivosLineaInvestigacionHome.instance.idObjetivosLineaInvestigacion}"/>
                 <f:param name="objetivosFrom" value="ObjetivosLineaInvestigacion"/>
            </s:button>
        </div>
        </f:subview>
    </rich:tab>
</rich:tabPanel>
</ui:define>

</ui:composition>
